#!/bin/bash
# mkdir and info

color(){
    echo -e "\e[32m$*\e[0m"
}

take() {
  mkdir $1 && cd $1
}

setproxy(){
    ip_port=192.168.2.4:7890
    export https_proxy=$ip_port
    export http_proxy=$ip_port
    color 开启代理

}

unsetproxy(){
    unset https_proxy
    unset http_proxy
    color 关闭代理
}

clash() {
    proxy_on
    ~/.config/clash/clash-linux &
}

cht() {
    cheat $1 | bat -l bash -p
}

echo $ip

